
package com.booking.fragment;

import android.support.v4.app.Fragment;

public abstract class BasicFragment extends Fragment {

    public static enum FragmentType {
        SPLASH, HOME, MAP, FAVORITE, PLACES_LIST, SERVICES_LIST, PLACES_CONTAINER, FILTER_FRAGMENT
    }

    public abstract void updateData();

    public boolean onBackPressed() {
        return false;
    }

    public abstract FragmentType getFragmentType();

    public void clearData() {
    }

    @Override
    public void onDetach() {
        clearData();
        super.onDetach();
    }
}
